<template>
  <div class="header test">
    <div class="header-left">
		<RouterLink to="/login"><div class="iconfont backicon">&#xe624;</div></RouterLink>
		</div>
    <router-link to="/search" class="header-input"><span class="iconfont">&#xe632;</span>输入城市/景点/游玩主题</router-link>
    <router-link to="/City">
    <div class="header-right">{{this.city}}<span class="iconfont arrow-icon">&#xe64a;</span></div>
    </router-link>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState(['city'])
  }
}
</script>
<style lang="stylus" scoped>
   @import '~styles/varibles.styl'
  .header
    display: flex;
    line-height: $headerHeight;
    color: #fff;
    background-color: $bgColor;
  .header-left
    float: left;
    width: .64rem;
    .backicon
      text-align: center;
      font-size :.4rem;
  .header-input
    flex:1;
    height: .64rem;
    line-height: .64rem;
    padding-left: .2rem;
    margin-top: .12rem;
    background-color: #fff;
    color: #ccc;
    border-radius :.1rem;
  .header-right
    float: left;
    margin-left: .2rem;
    min-width: 1.04rem;
    color: #fff;
    .arrow-icon
      font-size :.24rem;
</style>
